package com.sansui.blog.dao;

import com.sansui.blog.pojo.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @name: UserInfoDao
 * @author: Sansui
 * @Software: IDEA
 * @Blog: https://www.cnblogs.com/sansui6/
 * @date: 2022-05-06 21:20
 **/
@Mapper
public interface UserInfoDao {

    /**
     * 根据用户id 获取用户详细信息
     * @param uid
     * @return
     */
    UserInfo getUserInfoByUserId(String uid);

    /**
     * 保存用户信息
     * @param userInfo
     */
    void saveUserInfo(UserInfo userInfo);

    void uploadAvatars(@Param("avatars")String avatars,@Param("uid")String uid);



}
